package com.sasis.service;

import com.sasis.model.Role;
import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

import java.util.List;

/**
 * Business Service Interface to handle communication between web and
 * persistence layer.
 *
 * <p><a href="RoleManager.java.html"><i>View Source</i></a></p>
 *
 * @author <a href="mailto:dan@getrolling.com">Dan Kibler </a>
 */
public interface RoleManager extends Manager {
	public PageList findAll(PageRequest pageRequest);
	public PageList findByLikeName(String name, PageRequest pageRequest);
	public List findByUserId(Long userId);
    public List getRoles();
    public Role loadRole(Long id);
    public Role getRole(String rolename);
    public void saveRole(Role role);
    public void removeRole(String rolename);
}
